﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Import Namespace="CRM.Controllers" %>

<% using (Html.BeginForm("FileUploadPartial", "Test", FormMethod.Post, new { @class = "imageGallery" })) {
    Html.DevExpress().UploadControl(
        settings =>
            {
                settings.Name = "ucMultiFile";

                settings.AddUploadButtonsHorizontalPosition = AddUploadButtonsHorizontalPosition.Left;
                settings.FileInputCount = UploadControlDemosHelper.FileInputCount;
                settings.ShowAddRemoveButtons = true;
                settings.ValidationSettings.Assign(UploadControlDemosHelper.ValidationSettings);
            }).GetHtml(); %>
    <br />
    <div class="text">
        Allowed image types: jpeg, gif<br />
        Maximum file size: 20MB
    </div>
    <div class="buttons">
        <input type="submit" name="add" value="Add images to collection" />&nbsp;
        <input type="submit" name="clear" value="Clear collection" />
    </div>

    <% } %>